# Author: LiXizhi
# Company: ParaEngine.com
# Date: 2010.6.19
# Desc: include this file to overwrite all compiler settings 
# If you intend to build the entire source tree using /MT and you don't need this ever to be configurable via the CMake GUI, # the best approach is to create an override file which initializes the starting cache values for the compile flags. 

# link statically with msvc runtime for all projects. /MT 
if(MSVC)
	set(CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1")
  set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT     "/MT /O1 /Ob1 /D NDEBUG")
  set(CMAKE_CXX_FLAGS_RELEASE_INIT        "/MT /O2 /Ob2 /D NDEBUG")
  set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "/MT /Zi /O2 /Ob1 /D NDEBUG")
endif()

